#include "StompedReality/Asset/KeyFrame.h"
#include "StompedReality/Core/TypeSystem/TypeSystem.h"
namespace StompedReality
{
namespace animation
{
KeyFrame::KeyFrame( )
{
  this->_rotation = 0;
  this->_duration = 0;
}

KeyFrame::~KeyFrame( )
{
}

void KeyFrame::SetRotation ( float rotation )
{
  this->_rotation = rotation;
}

float KeyFrame::GetRotation( )
{
  return this->_rotation;
}

void KeyFrame::setDuration ( float duration )
{
  this->_duration = duration;
}

float KeyFrame::getDuration( )
{
  return this->_duration;
}

int KeyFrameReg::registeType( )
{
  return ( int ) ( StompedReality::type_system::TypeSystem::CreateTypeInfo<KeyFrame> ( "KeyFrame" )->
                   addTypeField ( StompedReality::type_system::TypeField ( "rotation",
                                                                           &KeyFrame::_rotation ) )->
                   addTypeField ( StompedReality::type_system::TypeField ( "duration",
                                                                           &KeyFrame::_duration ) ) );
}

}
}
